package com.yzy.fly.entity.jdk;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.google.common.collect.Lists;
import com.yzy.fly.kernel.model.FlyBasicModel;
import lombok.Data;

import java.util.List;

@Data
@TableName(value = "jdk_package", autoResultMap = true)
public class JdkPackage extends FlyBasicModel<Integer,JdkPackage> {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
//    //已知直接子类
//    private String modifier;
//    private String type;
//    private String code;
    private String description;

    @TableField(exist = false)
    private List<JdkClass> classes = Lists.newArrayListWithCapacity(0);
    @TableField(exist = false)
    private List<JdkInterface> interfaces = Lists.newArrayListWithCapacity(0);
    @TableField(exist = false)
    private List<JdkException> exceptions = Lists.newArrayListWithCapacity(0);
    @TableField(exist = false)
    private List<JdkEnum> enums = Lists.newArrayListWithCapacity(0);

    private String since;
    private String version;
    private String sourceUrl;
    private String html;


}
